package com.ytjj.qmyx.mall.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class Channel implements Serializable {
    private Integer id;

    /**
     * 平台
     *
     * @mbg.generated
     */
    private String platform;

    /**
     * 渠道
     *
     * @mbg.generated
     */
    private String channel;

    /**
     * 排序
     *
     * @mbg.generated
     */
    private Integer sort;

    /**
     * 渠道描述
     *
     * @mbg.generated
     */
    private String channelDesc;

    /**
     * 显示状态 0->不显示， 1->显示
     *
     * @mbg.generated
     */
    private Byte status;

    /**
     * 创建时间
     *
     * @mbg.generated
     */
    private Date createTime;

    private Byte errorStatus;

    private String spareUrl;

    private Integer pid;

    /**
     * 渠道用户id
     *
     * @mbg.generated
     */
    private Integer channelUserId;

    /**
     * 重定向路径
     *
     * @mbg.generated
     */
    private String redirectUrl;

    /**
     * 索引
     *
     * @mbg.generated
     */
    private Integer serial;

    /**
     * 渠道参数
     *
     * @mbg.generated
     */
    private String channelParam;

    /**
     * (0:不通过1：通过)
     *
     * @mbg.generated
     */
    private Integer channelStatus;

    /**
     * 短链
     *
     * @mbg.generated
     */
    private String shortUrl;
    /**
     * 渠道数据用户id
     */
    private Integer dataUserId;
    /**
     * 给量折扣
     */
    private BigDecimal coupon;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPlatform() {
        return platform;
    }

    public void setPlatform(String platform) {
        this.platform = platform;
    }

    public String getChannel() {
        return channel;
    }

    public void setChannel(String channel) {
        this.channel = channel;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getChannelDesc() {
        return channelDesc;
    }

    public void setChannelDesc(String channelDesc) {
        this.channelDesc = channelDesc;
    }

    public Byte getStatus() {
        return status;
    }

    public void setStatus(Byte status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Byte getErrorStatus() {
        return errorStatus;
    }

    public void setErrorStatus(Byte errorStatus) {
        this.errorStatus = errorStatus;
    }

    public String getSpareUrl() {
        return spareUrl;
    }

    public void setSpareUrl(String spareUrl) {
        this.spareUrl = spareUrl;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public Integer getChannelUserId() {
        return channelUserId;
    }

    public void setChannelUserId(Integer channelUserId) {
        this.channelUserId = channelUserId;
    }

    public String getRedirectUrl() {
        return redirectUrl;
    }

    public void setRedirectUrl(String redirectUrl) {
        this.redirectUrl = redirectUrl;
    }

    public Integer getSerial() {
        return serial;
    }

    public void setSerial(Integer serial) {
        this.serial = serial;
    }

    public String getChannelParam() {
        return channelParam;
    }

    public void setChannelParam(String channelParam) {
        this.channelParam = channelParam;
    }

    public Integer getChannelStatus() {
        return channelStatus;
    }

    public void setChannelStatus(Integer channelStatus) {
        this.channelStatus = channelStatus;
    }

    public String getShortUrl() {
        return shortUrl;
    }

    public void setShortUrl(String shortUrl) {
        this.shortUrl = shortUrl;
    }

    public Integer getDataUserId() {
        return dataUserId;
    }

    public void setDataUserId(Integer dataUserId) {
        this.dataUserId = dataUserId;
    }

    public BigDecimal getCoupon() {
        return coupon;
    }

    public void setCoupon(BigDecimal coupon) {
        this.coupon = coupon;
    }

    @Override
    public String toString() {
        return "Channel{" +
                "id=" + id +
                ", platform='" + platform + '\'' +
                ", channel='" + channel + '\'' +
                ", sort=" + sort +
                ", channelDesc='" + channelDesc + '\'' +
                ", status=" + status +
                ", createTime=" + createTime +
                ", errorStatus=" + errorStatus +
                ", spareUrl='" + spareUrl + '\'' +
                ", pid=" + pid +
                ", channelUserId=" + channelUserId +
                ", redirectUrl='" + redirectUrl + '\'' +
                ", serial=" + serial +
                ", channelParam='" + channelParam + '\'' +
                ", channelStatus=" + channelStatus +
                ", shortUrl='" + shortUrl + '\'' +
                ", dataUserId=" + dataUserId +
                '}';
    }
}